<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>所有汽车</title>
</head>
<body>
	<div>
		<h1>查询所有汽车！</h1>
		<ul>
			<c:forEach items="${sessionScope.cats}" var="c">
				<li style="list-style: none"><p>
						<span>价格：${c.price}</span>
						<span>品牌：${c.brand }</span>
						<span>排量：${c.displacement }</span>
						<span>马力：${c.horsepower }</span>
						<span>颜色：${c.color }</span>
						<a href="del?ID=${c.ID }">删除</a>
						<a href="up?ID=${c.ID }&price=${c.price}&brand=${c.brand}&displacement=${c.displacement}&horsepower=${c.horsepower}&color=${c.color}">修改</a>
					</p></li>
			</c:forEach>
			
		</ul>
		<p><a href="add">添加</a></p>
	</div>
</body>
</html>